package com.mor.shiro.controller;

import com.mor.shiro.annotation.RoleControl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RoleControl("ADMIN")
@Controller
public class LoginController {

    @RoleControl("USER")
    @RequestMapping("/login")
    public String login(HttpServletRequest request, HttpServletResponse resp) {
        return "";
    }
}
